package com.qf.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.blog.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * User: key
 * ClassName:UserMapper
 * Date: 2023/6/2
 * Time: 19:59
 * description:
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    Integer updateUserStatus(String code);

    Integer updateUserHeader(@Param("id") Integer id, @Param("url") String fileUrl);

    Integer insertOneUser(User user);

    boolean updateByEmail(String email, String body);

    boolean updete(String email, String emailVerifyCode);
}
